package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 财务明细对象 profit_jifen
 * 
 * @author ruoyi
 * @date 2022-05-24
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class ProfitJifen extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 变化后的金额 */
    @Excel(name = "变化后的金额")
    private BigDecimal money;

    /** 变化的金额 */
    @Excel(name = "变化的金额")
    private BigDecimal change;

    /** 类型，1 后台充值 2下单赠送 3 兑换 4 抽奖 */
    @Excel(name = "类型，1 后台充值 2下单赠送 3 兑换 4 抽奖")
    private Integer type;

    /** 管理员id */
    @Excel(name = "管理员id")
    private Long adminId;


    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long creator;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date createDate;

    private Integer ifMb; //是否为Mb记录


    private String username; //用户名

    private String headImgurl; // 头像


    private String ifPrivate;// 是否特权账号

    private User user; //用户信息

    private BigDecimal sum; //总金额


}
